<div class="box">
<% form_for @user_session, :url => user_session_path do |f| %>
  <%@errors = @user_session.errors %>
  <h2>Login</h2>
  <%= f.label :login, "User Name" %><br />
  <%= f.error_message_on :login %>
  <%= f.text_field :login %><br />
  <br />
  <%= f.label :password %><br />
  <%= f.error_message_on :password %>
  <%= f.password_field :password %><br />
  <br />
  <%= f.check_box :remember_me %><%= f.label :remember_me %><br />
  <br />
  <%= f.submit "Login" %>
<% end %>
</div>